html, body, .admin-container {
    height: 100%;
    margin: 0;
    padding: 0;
}

.footer_bottom {
    display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
 
.aside-menu {
    background: linear-gradient(to bottom, #001529, #0A2463);
    transition: width 0.3s ease;
    border-right: none;
    padding: 10px;
    border-radius: 8px;
}

/* 骨架屏样式 */
.el-skeleton {
    padding: 20px 0;
}
.el-skeleton__item {
    height: 40px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
}

/* 加载提示过渡效果 */
.smooth-loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out !important;
}
.smooth-loading.show {
    opacity: 1;
}

/* 加载提示内容样式 */
.el-loading-spinner {
    padding: 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* 加载文字动画 */
.el-loading-text {
    animation: text-fade 1.5s ease-in-out infinite;
}

@keyframes text-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
 
.logo-area {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-size: 16px;
    letter-spacing: 1px;
}
 
.logo {
    width: 30px;
    margin-right: 10px;
}
 
.logo-area span {
    white-space: nowrap;
}
 
.vertical-menu {
    border-right: none;
    background: transparent;
}

/*防止图片预览穿透*/
.el-table .el-table__cell {
    position: static !important;
}
 
.el-menu-item,
.el-sub-menu__title {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 20px !important;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

/* 单图模式隐藏上传按钮 */
.hide-upload .el-upload {
    display: none !important;
}
 
.el-menu-item:hover,
.el-sub-menu__title:hover {
    color: #fff !important;
    background: #1890ff !important;
    transform: scale(1.02);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
 
.el-menu--inline {
    background: rgba(0, 37, 41, 0.9);
    border-radius: 6px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
 
.el-menu--inline .el-menu-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 18px !important;
}
 
.el-menu--inline .el-menu-item:hover {
    color: #fff !important;
    background: #1890ff !important;
    transform: scale(1.02);
}

.mt-1 {
    margin-top: 10px;    
}

.mt-2 {
    margin-top: 20px;    
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 01.);
}
 
.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}
 
.breadcrumb {
    margin-left: 20px;
    font-size: 14px;
}
 
.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
}
 
.el-avatar {
    margin-right: 10px;
}
 
.main-content {
    background: #f0f2f5;
    padding: 24px;
    border-radius: 8px;
}

.readxlsx {
    padding: 10px;
    width: 100%;
}

.word-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: var(--el-color-primary-light-9);
    transition: all 0.3s;
}

.word-link:hover {
    background-color: var(--el-color-primary-light-7);
}

/*打印*/
.print-container {
    position: relative;
    display: inline-block;
}

.print-button {
    margin-left:5px;
    background: rgba(255, 255, 255, 0.9);
}

.print-preview-dialog .el-dialog__body {
    padding: 20px;
}

.docx-preview {
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-height: 300px;
}

.loading-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 0;

	.is-loading {
		animation: rotating 2s linear infinite;
	}
}

.error-message {
	margin: 20px;
}

@keyframes rotating {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@media print {
	.docx-wrapper {
		padding: 0 !important;
	}

	.docx>section {
		margin: 0 !important;
	}
    .print-preview-dialog .el-dialog__header,
    .print-preview-dialog .el-dialog__footer {
        display: none !important;
    }
}

/*忽略下拉菜单警告*/
.el-dropdown__popper {
    &[aria-hidden="true"] {
        display: none !important;
        pointer-events: none !important;
    }
}

/* 确保空编辑器时有最小高度 */
.editor-content:empty::before {
    content: attr(placeholder);
    color: #aaa;
    display: inline-block;
    width: 100%;
    height: 1em;
}
    
.crudtabel .el-table__cell .cell {
    padding: 0 6px !important; /* crudtabel表格内容减小左右边距 */
}

/*导出进度条*/
	.export-container {
		display: inline-block;
	}

	.export-container .export-button {
		padding: 8px 15px;
		margin-left: 10px;
	}

	.export-container .export-button .el-icon {
		margin-right: 6px;
	}

	.progress-container {
		padding: 20px;
	}

	.progress-container .el-progress {
		margin: 15px 0;
	}

	.progress-container .el-progress .percentage-text {
		font-weight: bold;
		color: #409eff;
	}

	.progress-container .el-progress .percentage-text .el-icon {
		margin-left: 5px;
	}

	.progress-container .progress-tips {
		margin-top: 15px;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #666;
	}

	.progress-container .progress-tips .el-icon {
		margin-right: 8px;
		font-size: 16px;
	}

	.progress-container .progress-tips .loading-icon {
		color: #409eff;
		animation: rotating 2s linear infinite;
	}

	.progress-container .progress-tips .success-icon {
		color: #67c23a;
	}

	@keyframes rotating {
		from {
			transform: rotate(0deg);
		}
		to {
			transform: rotate(360deg);
		}
	}

/*证书模板*/
	.field-tip {
		color: #666;
		margin-bottom: 15px;
	}

	.field-item {
		display: flex;
		align-items: center;
		margin: 10px 0;
		padding: 10px;
		background: #f8f8f8;
		border-radius: 4px;
	}

	.field-name {
		flex: 1;
		min-width: 100px;
	}

	.field-coordinates {
		display: flex;
		gap: 10px;
	}

	.footer-actions {
		margin-top: 20px;
		text-align: center;
	}

	.preview-image {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
	
	.config-container {
		display: grid;
		grid-template-columns: 1fr 300px;
		gap: 20px;
		height: 70vh;
	}

	.canvas-wrapper {
		position: relative;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
	}

	.field-element {
	    box-sizing: border-box;
	    user-select: none;
		position: absolute;
		cursor: move;
		border: 1px dashed transparent;
		transition: all 0.2s;
		transform-style: flat;
	}

	.field-element.active {
		border-color: #409eff;
		box-shadow: 0 0 8px rgba(64, 158, 255, 0.3);
		z-index: 100;
	}

	.resize-handle {
		position: absolute;
		background: #409eff;
		cursor: nwse-resize;
		border-radius: 2px;
		opacity: 0;
		transition: opacity 0.2s;
        right: -8px;
        bottom: -8px;
        width: 16px;
        height: 16px;
	}

	.field-element:hover .resize-handle {
		opacity: 1;
	}

    .position-inputs {
        display: flex;
        flex-direction: column; /* 设置为垂直排列 */
        gap: 10px;
    }
	
	.field-element {
		position: absolute;
		padding: 4px 8px;
		border: 1px dashed #ccc;
		background: rgba(255, 255, 255, 0.9);
		transition: all 0.2s;
		user-select: none;
	}

	.field-element:hover {
		border-color: #409eff;
		box-shadow: 0 2px 12px rgba(64, 158, 255, 0.1);
	}

	.field-element.active {
		border: 2px solid #409eff;
		z-index: 1000;
		box-shadow: 0 2px 12px rgba(64, 158, 255, 0.2);
	}

	.resize-handle {
		position: absolute;
		right: -6px;
		bottom: -6px;
		width: 12px;
		height: 12px;
		background: #409eff;
		border-radius: 50%;
		cursor: nwse-resize;
		opacity: 0;
		transition: opacity 0.2s;
	}

	.canvas-container {
		border: 1px solid transparent;
		border-radius: 4px;
		background: #f8f9fa;
		position: relative;
		overflow: auto;
	}
	
	/*富文本编辑器*/
    .blocks-container {
		display: flex;
		flex-direction: column;
		background-color: #ebeef5;
	}

	.block-container {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		margin-bottom: 5px;
	}

	.media-block {
		flex-grow: 1;
		margin-right: 10px;
		border: 1px dashed #409EFF;
	}

	.block-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
	}

	.image-preview {
		width: 100%;
		min-height: 200px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.image-error {
		color: #f56c6c;
		padding: 20px;
	}

	.toolbar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 12px 0;
		border-top: 1px solid #ebeef5;
		margin-top: 20px;
	}
	
	.main-actions {
	    display: flex; justify-content: flex-start; align-items: center;gap: 10px;padding: 0 10px;
	}
	
    .media-img,
	.media-video {
		width: 300px;
		margin: auto;
	}

	.history-actions {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.history-btn {
		padding: 10px 16px;
		background-color: #d9e7ff80;
        color: #121213;
		color: #121213;
	}

	.clear-btn {
		padding: 10px 16px;
	}
	
	/*图片选择*/
    .preview-wrapper {
        width: 200px;
        height: 200px;
        border: 2px dashed #e5e5e5;
        border-radius: 8px;
        background: #f8f8f8;
        overflow: hidden;
        position: relative;
        cursor: pointer;
    }
    
    /* 小尺寸模式 */
    .small {
        width: 60px;
        height: 60px;
    }
        
    .preview-wrapper .preview-content {
        width: 100%;
        height: 100%;
        position: relative;
    }
    
    .preview-wrapper .preview-content .preview-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .upload-trigger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .preview-wrapper .upload-trigger .camera-icon {
        font-size: 36px;
        color: #ddd;
    }
    
    .preview-wrapper .upload-trigger .tip-text {
        font-size: 14px;
        color: #999;
        margin-top: 8px;
    }
    
    .preview-wrapper .delete-btn {
        position: absolute;
        right: 8px;
        top: 8px;
        background: rgba(0, 0, 0, 0.5);
        padding: 6px;
        border-radius: 50%;
        color: white;
        z-index: 2;
    }
    
    .image-grid {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .image-grid .grid-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
        padding-bottom: 16px;
        border: 2px solid #f2f0f0;
    }
    
    .image-grid .grid-container .grid-item {
        position: relative;
        aspect-ratio: 1;
        border-radius: 6px;
        overflow: hidden;
        background: #f8f8f8;
        cursor: pointer;
    }
    
    .image-grid .grid-container .grid-item .thumbnail {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .image-grid .grid-container .grid-item.selected {
        box-shadow: 0 0 0 3px var(--primary-color);
    }
    
    .image-grid .grid-container .grid-item .item-actions {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        padding: 6px;
    }
    
    .image-grid .grid-container .grid-item .item-actions .selected-mark {
        width: 24px;
        height: 24px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .image-grid .grid-container .grid-item .item-actions .delete-action {
        width: 24px;
        height: 24px;
        background: var(--danger-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .image-grid .loading-text {
        text-align: center;
        padding: 16px;
        color: #999;
        font-size: 14px;
    }
    
    .dialog-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
    }
    
    .dialog-header .header-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .dialog-header .header-left .title {
        font-size: 18px;
        font-weight: 500;
    }
    
    .dialog-header .close-icon {
        cursor: pointer;
        padding: 4px;
    }
    
    .dialog-header .close-icon:hover {
        color: var(--primary-color);
    }
    
    .image-picker-dialog {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: fixed;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .image-picker-dialog .el-dialog__header {
        padding: 0;
    }
    
    .image-picker-dialog .el-dialog__body {
        padding: 0 16px 16px;
    }
    
/*网页模板*/
	.main-layout {
		display: grid;
		grid-template-columns: 1fr 400px;
		gap: 20px;
		margin-bottom: 20px;
	}

	.config-group {
		margin-bottom: 24px;
		padding: 16px;
		border: 1px solid #ebeef5;
		border-radius: 4px;
	}

	.group-title {
		margin: 0 0 16px 0;
		color: #606266;
		font-size: 14px;
	}
	
	.preview-card {
		height: calc(100vh - 180px);
	}
	
	.preview-header {
	    width:100%;
	}

	.preview-wrapper {
		padding: 20px;
		background-size: cover;
		background-position: center;
	}

	.preview-title {
		margin: 20px 0;
		text-align: center;
	}

	.preview-btn {
		margin: 20px auto;
		white-space: nowrap;
	}
	
.example-prompts {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.prompt-title {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.prompt-tag {
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.prompt-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.generated-preview {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
}

.field-tag {
    margin-right: 10px;
    margin-bottom: 10px;
}

.birthday {
    --el-input-bg-color: rgba(255,255,0,0.3) !important; /* 半透明黄色背景 */
    --el-input-text-color: #ff0000 !important;
}

.birthday :deep(.el-input__wrapper) {
    background: var(--el-input-bg-color);
    box-shadow: 0 0 0 1px var(--el-input-border-color) !important;
}

.birthday :deep(.el-input__inner) {
    color: var(--el-input-text-color);
    font-weight: bold; /* 可添加额外样式 */
}

.ellipsis-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*文件管理器*/
.file-manager-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
}

.action-bar {
    margin-bottom: 20px;
}

.breadcrumb2 {
    padding: 10px 5px;
    margin-bottom: 15px;
    background: #f5f7fa;
    border-radius: 4px;
    font-size: 15px;
}

.file-table {
    margin: 20px 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-top: 10px;
    background-color: #f5f7fa;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.file-icon {
    font-size: 24px;
    margin-right: 12px;
}

.file-name {
    font-size: 14px;
    margin-right: 8px;
}

.file-name2 {
  flex: 1;
  margin-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delete-icon {
  cursor: pointer;
  color: #909399;
  padding: 4px;
  border-radius: 50%;
}

.delete-icon:hover {
  background-color: #dcdfe6;
  color: #f56c6c;
}

.pagination-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.preview-media {
    text-align: center;
}
.preview-player {
    max-width: 100%;
    max-height: 70vh;
}
.preview-image {
    max-height: 70vh;
}

/*文本预览*/
.preview-text {
    background: #f5f0e6; /* 羊皮纸底色 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 900px; /* 最佳阅读宽度 */
    margin: 20px auto;
    padding: 30px 15px;
}

/* 文本内容样式 */
.text-content pre {
    font-family: "思源宋体", "Noto Serif SC", serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3a3a3a;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: justify;
    margin: 0;
    padding: 0 15px;
    /* 首行缩进解决方案 */
    display: block;
    text-indent: 2em;  /* 全局缩进 */
    hanging-punctuation: first; /* 标点悬挂 */
}

/* 智能段落检测 */
.text-content pre {
    counter-reset: paragraph;
}

/* 段落生成规则 */
.text-content pre br + :not(br):before {
    display: block;
    content: "";
    margin-top: 0.8em;
    text-indent: 2em;
}

/* 处理空段落 */
.text-content pre br[data-empty]:after {
  content: "\A\A";
  white-space: pre;
}

/* 代码高亮 */
/* 代码预览容器样式 */
.text-content div[class^="language-"] {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow-x: auto;
    padding: 1em;
    border-radius: 6px;
    display: block;
    font-family: Monaco, Consolas, "Courier New", monospace;
}

/* 修复行内元素换行问题 */
.text-content span.hljs-tag,
.text-content span.hljs-keyword,
.text-content span.hljs-meta {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    display: inline-block; /* 关键属性 */
}
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#c678dd}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#98c379}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#d19a66}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}

.approver {
    font-size: 14px;
    font-weight: 500;
    color: #3E3E3E;
}

.comment {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.no-comment {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.message-notice {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    margin: 10px 10px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 50%;
}
.message-notice:hover {
    background-color: rgba(64, 158, 255, 0.1);
}

.notice-icon {
    color: #606266;
    transition: color 0.3s;
}

.notice-icon:hover {
    color: #409EFF;
}

.message-trigger {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
}

/* 消息弹窗样式 */
.message-popover {
    padding: 0 !important;
}

.message-box {
    padding: 12px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.message-item {
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.3s;
}

.message-item.unread {
    background: #f8f9fa;
}

.message-item:hover {
    background: #f5f7fa;
}

.message-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-time {
    font-size: 12px;
    color: #909399;
}

.message-body {
    margin-top: 8px;
    font-size: 13px;
    color: #606266;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s;
}

/* 当鼠标悬停在消息项时显示完整内容 */
.message-item:hover .message-body {
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    display: block;
    white-space: normal;
}

/* 可选：添加悬停背景色变化 */
.message-item:hover {
    background-color: #f5f7fa;
    cursor: pointer;
}

.empty-message {
    text-align: center;
    padding: 20px;
    color: #909399;
}

.message-footer {
    padding: 12px;
    border-top: 1px solid #eee;
    text-align: center;
}

.message-item {
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
}

/* 未读消息样式 */
.message-item.unread {
    background-color: #f8fbff;
    border-left: 3px solid #409EFF;
}

/* 已读消息文字颜色 */
.message-item:not(.unread) .message-title,
.message-item:not(.unread) .message-time,
.message-item:not(.unread) .message-body {
    color: #909399;
}

/* 未读消息文字颜色 */
.message-item.unread .message-title {
    color: #303133;
    font-weight: 500;
}
.message-item.unread .message-time {
    color: #409EFF;
}

.message-item.unread .message-body {
    color: #606266;
}

/* 首页diy */
.template-editor {
    display: flex;
    flex-direction: column;
    margin-top: -30px;
    min-height: calc(100vh - 100px);
}

.template-editor .editor-main {
    flex: 1;
    display: flex;
}

/* 增加拖拽操作区域灵敏度 */
.template-editor .canvas-container {
    min-height: 80vh;
    position: relative;
    z-index: 1;  /* 确保层级高于其他元素 */
}

.template-editor .ghost-style {
    opacity: 0.6;
    transform: scale(0.95);
    transition: all 0.3s;
}
.template-editor .editor-main .title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
}

/* 防止拖拽过程中文本选中 */
.template-editor .component-library *,
.template-editor .canvas-component * {
    user-select: none;
    -webkit-user-drag: none;
}

.template-editor .component-library {
    width: 300px;
    padding: 15px 16px;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.template-editor .component-library, .property-panel {
    padding: 10px 16px;
    margin-top: 10px;
    line-height: 2em;
    border: 1px solid #eee;
}

.template-editor .canvas-area {
    flex: 1;
    padding: 10px 20px;
    position: relative;
    border: 2px dashed #eee;
    max-width: 480px;
    margin: 0 auto;
}

.template-editor .canvas-container {
    min-height: 100%;
    background: white;
}

.template-editor .canvas-component {
    position: relative;
    margin: 8px 0;
    border: 1px solid #ebeef5;
    transition: all 0.3s;
}

.template-editor .canvas-component.active {
    border-color: #409eff;
    box-shadow: 0 0 4px rgba(64,158,255,.3);
}

.template-editor .component-tools {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255,255,255,.9);
    padding: 4px;
    border-radius: 4px;
}

.template-editor .config-item {
    margin-bottom: 16px;
}
.template-editor .config-item label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.component-properties {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

/* 组件预览样式 */
.template-editor .notice-preview {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
}

.template-editor .carousel-preview {
    position: relative;
    height: 150px;
    border: 1px dashed #e0e0e0;
    padding: 10px;
    border-radius: 4px;
}

.template-editor .carousel-preview :hover {
    border-color: #409eff;
    background-color: #f5f7fa;
}

.template-editor .menu-grid {
    min-height: 100px;
}

.template-editor .search-preview {
    padding: 12px;
}

.template-editor .component-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: grab;
    transition: transform 0.2s ease;
}

.template-editor .component-item:hover {
  transform: translateY(-4px);
}

.template-editor .chosen-style {
    cursor: move;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

.el-carousel__item {
    position: relative;
    top: 0;
    left: 0;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 添加拖拽视觉效果 */
.template-editor .ghost-item {
    opacity: 0.5;
    background: #f0f0f0;
    border: 2px dashed #409eff;
}

.template-editor .chosen-item {
    background: #f5f7fa;
    cursor: grabbing;
}

/* 空状态提示 */
.template-editor .empty-prompt {
    text-align: center;
    color: #909399;
    padding: 40px 0;
}

.template-editor .empty-prompt .prompt-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* 网格菜单样式 */
.template-editor .menu-grid .grid-container {
    display: grid;
    width: 100%;
}

/* win8菜单样式 */
.custom-grid-preview {
    width: 100%;
    min-height: 200px;
}

.custom-grid-preview .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border: 1px dashed #dcdfe6;
    border-radius: 8px;
    color: #c0c4cc;
}

.custom-grid-preview .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    color: #e6a23c;
    gap: 8px;
}

.template-editor .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s;
}

.template-editor .grid-item span {
    margin-top: 4px;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.template-editor .grid-item:hover {
    background: #f5f7fa;
    border-radius: 4px;
}

/* 菜单项管理样式 */
.template-editor .menu-management {
    border: 1px solid #ebeef5;
    border-radius: 4px;
    margin-top: 12px;
}

.template-editor .menu-items-list {
    margin-top: 12px;
}

.template-editor .menu-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 4px 0;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s;
}

.template-editor .menu-item:hover {
    background: #f1f3f5;
    transform: translateX(4px);
}

.template-editor .menu-item .drag-handle {
    cursor: move;
    margin-right: 8px;
    color: #909399;
}

/* 空状态提示 */
.template-editor .placeholder {
    text-align: center;
    color: #909399;
    padding: 20px;
    border: 1px dashed #dcdfe6;
    border-radius: 4px;
}

/* 操作工具栏 */
.template-editor .component-tools {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    background: rgba(255,255,255,0.9);
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-editor .canvas-component:hover .component-tools {
    display: flex;
}

/* 拖拽视觉反馈 */
.template-editor .ghost-item {
    opacity: 0.5;
    background: #f5f5f5;
    border: 2px dashed #409eff;
}

.template-editor .chosen-item {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.date-slot-item, .time-slot-item {
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #ebeef5;
    border-radius: 4px;
}

.mr-2 {
    margin-right: 8px;
}

    /*uniedit富文本编辑器*/
	.uniedit-container {
		width: 100%;
		margin: 20px auto;
		border: 1px solid #e4e7ed;
		border-radius: 8px;
		background: #fff;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: auto;
	}

	.toolbar-group {
		padding: 8px;
		background: #f8f9fa;
		border-bottom: 1px solid #ebeef5;
	}

	.toolbar-row {
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
		padding: 4px 0;
	}

	.tool-group {
		display: flex;
		align-items: center;
		gap: 4px;
		position: relative;
	}

	.tool-group.divider::after {
		content: "|";
		color: #dcdfe6;
		margin-left: 8px;
	}

	.tool-item {
		padding: 6px 12px;
		border-radius: 4px;
		font-size: 14px;
		color: #606266;
		cursor: pointer;
		transition: all 0.2s;
		user-select: none;
	}

	.tool-item:hover {
		background: #ecf5ff;
	}

	.editor-content {
		min-height: 400px;
		padding: 20px;
		line-height: 1.6;
		outline: none;
		overflow-y: auto;
	}

	.editor-content:focus {
		box-shadow: inset 0 0 0 1px #409eff;
	}

	.color-picker {
		padding: 10px;
	}

	.color-grid {
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		gap: 8px;
		margin-bottom: 12px;
	}

	.color-item {
		width: 32px;
		height: 32px;
		border-radius: 4px;
		cursor: pointer;
		transition: transform 0.2s;
	}

	.color-item:hover {
		transform: scale(1.1);
	}